#include "junix.h"

struct A
{
	char c;
	short s;
	long l;
};

int main(int argc, char **argv)
{
	printf("%d\n",sizeof(struct A));
	printf("offset s:%d\n", offset(struct A, s));
	printf("offset s:%d\n", (int)&(((struct A*)0)->s) );
	printf("offset l:%d\n", offset(struct A, l));
	printf("offset l:%d\n",  (int)&(((struct A*)0)->l) );

    exit(0);
}

